package com.kitty.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.kitty.util.DateUtil;
import com.kitty.util.model.Entity;


public class TUser extends Entity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3618679462152788927L;
	public String email;
	public String pwd_salt;
	public String pwd_hash;
	public String name;
	public Boolean useLocal;
	public String status;
	public Date validTo;
	public Set<TCustomer> customers = new HashSet<TCustomer>();
	public Set<TCustomerCatalog> catalogs = new HashSet<TCustomerCatalog>();
	
	public TUser() {
		super();
		status = "P";
		useLocal = true;
		validTo = DateUtil.addMonth(new Date(), 1);
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPwd_salt() {
		return pwd_salt;
	}
	public void setPwd_salt(String pwd_salt) {
		this.pwd_salt = pwd_salt;
	}
	public String getPwd_hash() {
		return pwd_hash;
	}
	public void setPwd_hash(String pwd_hash) {
		this.pwd_hash = pwd_hash;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Boolean getUseLocal() {
		return useLocal;
	}
	public void setUseLocal(Boolean useLocal) {
		this.useLocal = useLocal;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}

	public Set<TCustomer> getCustomers() {
		return customers;
	}

	public void setCustomers(Set<TCustomer> customers) {
		this.customers = customers;
	}

	public Set<TCustomerCatalog> getCatalogs() {
		return catalogs;
	}

	public void setCatalogs(Set<TCustomerCatalog> catalogs) {
		this.catalogs = catalogs;
	}

	public Date getValidTo() {
		return validTo;
	}

	public void setValidTo(Date validTo) {
		this.validTo = validTo;
	}
}